In [4]:
from collections import Counter
cnt = Counter()
for word in ['red', 'blue', 'red', 'green', 'blue', 'blue']:
cnt[word] += 1
cnt
Out[4]:
In [5]:
cnt.most_common(1)
Out[5]: